# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from bigmama.BabyMgr.views import main_page
from bigmama.BabyMgr.views import login_main_page

from bigmama.BabyMgr.views import select_build_page
from bigmama.BabyMgr.views import select_photo_page
from bigmama.BabyMgr.views import buildlog_page
from bigmama.BabyMgr.views import photolog_page
from bigmama.BabyMgr.views import memolog_page
from bigmama.BabyMgr.views import select_memo_page

from bigmama.BabyMgr.views import dummy
from bigmama.BabyMgr.views import register_user_page
from bigmama.BabyMgr.views import login_page
from bigmama.BabyMgr.views import logout_page
from bigmama.BabyMgr.views import register_baby_page
from bigmama.BabyMgr.views import logging_height_page
from bigmama.BabyMgr.views import logging_weight_page
from bigmama.BabyMgr.views import logging_menu_page
from bigmama.BabyMgr.views import logging_photo_page
from bigmama.BabyMgr.views import logging_dairy_page
from bigmama.BabyMgr.views import session_test
from bigmama.Statistics.views import insert_stat_build_page

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^bigmama/', include('bigmama.foo.urls')),
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^$', main_page),
    (r'^accounts/profile', login_main_page),            
    (r'^dummy/', dummy),
    (r'^buildlog', buildlog_page),
#    (r'^select_build_baby', dummy),
    (r'^select_build_baby', select_build_page),    
    (r'^select_photo_baby', select_photo_page),
    (r'^photolog', photolog_page),
    (r'^memolog', memolog_page),    
#    (r'^select_memo_baby', dummy),
    (r'^select_memo_baby', select_memo_page),
#    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
#    (r'^accounts/profile/', main_page),
    (r'^login/$', 'django.contrib.auth.views.login'),
    (r'^logout/$', 'django.contrib.auth.views.logout'),
    ('^session_test/$', session_test),
    
    # for android page,
    (r'^accounts/register_user/', register_user_page),
    (r'^accounts/login/', login_page),
    (r'^accounts/logout/', logout_page),
    (r'^accounts/register_baby/', register_baby_page),
    (r'^logging/height/', logging_height_page),
    (r'^logging/weight/', logging_weight_page),
    (r'^logging/menu/', logging_menu_page),
    (r'^logging/photo/', logging_photo_page),
    (r'^logging/dairy/', logging_dairy_page),        
    (r'^logging/statistics/build', insert_stat_build_page),    
)


